package com.ruoyi.bussiness.controller.user;

import com.ruoyi.common.param.user.MpUserPageParam;
import com.ruoyi.common.core.api.ApiResult;
import com.ruoyi.common.core.pagination.Paging;
import com.ruoyi.common.service.business.MpUserService;
import com.ruoyi.common.vo.business.MpUserVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Song
 * @date 2024/10/25 17:53
 * @description
 */
@RestController
@RequestMapping("/common/user")
@Api(tags = "小程序用户")
public class MpUserController {

    @Autowired
    private MpUserService mpUserService;

    @RequestMapping(value = "/page",method = RequestMethod.GET)
    @ApiOperation("小程序用户列表")
    public ApiResult<Paging<MpUserVo>> pageVo(MpUserPageParam pageParam){
        Paging<MpUserVo> page=mpUserService.pageVo(pageParam);
        return ApiResult.ok(page);
    }
}
